<template>
  <el-row :gutter="20">`
    <el-col :span="11">
      <el-card>
        <template #header>
          基本信息
        </template>
        <el-row>
          <el-col :span="6">
            <el-avatar shape="square" :src="userStore.avatar" style="height: 100px;width: 100px"></el-avatar>
          </el-col>
          <el-col :span="12">
              <el-text tag="b" size="large"> {{userStore.userName}}</el-text>
            <br>
            <el-icon v-if="userStore.sex==0" color="blue"><Male /></el-icon>
            <el-icon v-else color="red"><Female /></el-icon>
          </el-col>
        </el-row>
      </el-card>
    </el-col>
    <el-col :span="11">
      <el-card>
        <template #header>
          消息中心
        </template>
        <el-row :gutter="10">
          <el-col :span="6" >
            <el-text>消息</el-text>
            <el-card shadow="hover">
              <el-text> <el-icon size="30"  color="red" style="vertical-align: middle"><ChatLineRound /></el-icon>+???</el-text>
            </el-card>
          </el-col>
          <el-col :span="6" >
            <el-text>邮件</el-text>
            <el-card shadow="hover">
              <el-text> <el-icon size="30"  color="green" style="vertical-align: middle"><Message /></el-icon>+???</el-text>
            </el-card>
          </el-col>
        </el-row>
      </el-card>
    </el-col>
  </el-row>
</template>

<script setup lang="ts">
import {ref} from 'vue'
import {useUserStore} from "@/stores/user";

const userStore = useUserStore()
</script>

<style scoped>

</style>
